//package com.majun.config.filter6;
//
//import org.springframework.boot.web.servlet.FilterRegistrationBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
///**
// * @program: springboot
// * @description:
// * @author: Sid
// * @date: 2018-11-19 13:48
// * @since: 1.0
// **/
//@Configuration
//public class RequestFilterConfiguration {
//    @Bean
//    public FilterRegistrationBean authFilterRegistrationBean() {
//        FilterRegistrationBean registration = new FilterRegistrationBean();
//        registration.setFilter(new RequestFilter()); //设置自定义的Filter
//        registration.addUrlPatterns("/*");  //设置过滤路径
//        registration.setName("RequestFilter"); //设置过滤器名称
//        registration.setOrder(1);   //设置过滤器顺序
//        //registration.addInitParameter("paramName", "paramValue");  //设置初始化参数 这里不用
//        return registration;
//    }
//}